<include file="header"/>
<body>
<div class="wraper">
    <div class="load">
        <img class="load-bee" src="/assets/base/repair/images/load-bee.png"/>

    </div>
    <div class="top">
        <p>
            <a href="{BEESCRM::U('Base/Center/center',array('account_id'=>$accountId))}"
               class="iconfont icon-zuo fl-left"></a>
            {BEESCRM:$app_name}
            <a href="{BEESCRM::U('base/repair/orderlist',array('repairId'=>$repairId))}"
               class="iconfont icon-shouye fl-right"></a>
        </p>
    </div>
    <if condition="$role neq 'repairman'">
        <ul class="nav clearfix">
            <a href="{BEESCRM::U('base/Repair/orderList',array('repairId'=>$repairId))}">
                <li
                <if condition="!$status">class="active"</if>
                >全部</li>
            </a>
            <a href="{BEESCRM::U('base/Repair/orderList',array('status'=>2,'repairId'=>$repairId))}">
                <li
                <if condition="$status eq 2">class="active"</if>
                >待确认</li>
            </a>
            <a href="{BEESCRM::U('base/Repair/orderList',array('status'=>3,'repairId'=>$repairId))}">
                <li
                <if condition="$status eq 3">class="active"</if>
                >已完工</li>
            </a>
            <a href="{BEESCRM::U('base/Repair/orderList',array('status'=>comment,'repairId'=>$repairId))}">
                <li
                <if condition="$status eq 'comment'">class="active"</if>
                >已评价</li>
            </a>
        </ul>
    </if>

    <div class="contain actived">
        <if condition="$data neq null">
            <volist name="data" id="vo">
                <a href="/index.php?g=base&m=repair&a=orderDetail&repairId={BEESCRM:$repairId}&order_id={BEESCRM:$vo.order_id}"
                   class="list">
                    <p>{BEESCRM:$vo['content']|mb_substr=0,25,'utf8'}</p>
                    <p class="sub">{BEESCRM:$vo['create_time']|date="Y-m-d",###}&nbsp;&nbsp;报修人：{BEESCRM:$vo['real_name']|mb_substr=0,1,'utf8'}某某
                        <span class="send fl-right">
            <if condition="($vo['status'] eq 1 or $vo['status'] eq 2) and $vo['cut_off'] neq 1">
            		已下单
            <elseif condition="$vo['status'] eq 4 and $vo['cut_off'] eq 0"/>
                <font color="green">已确认</font>
            <elseif condition="$vo['status'] eq 3"/>
            	<if condition="$vo['comment_time']"><font color="green">已评价</font>
                <elseif condition="$vo['pay_type'] eq 1 and $vo['pay_time'] neq 0"/><font color="green">已支付</font>
                <else/><font color="green">已维修</font>
                </if>
            <elseif condition="$vo['cut_off'] eq 1"/>
                <font color="green">已取消</font>    
            </if>
            </span></p>
                    <if condition="$role eq 'repairman'">
                        <if condition="$vo['address_detail'] eq ''">
                        <p class="sub">
                            {BEESCRM:$vo['community_name']}&nbsp;&nbsp;{BEESCRM:$vo['building_name']}&nbsp;&nbsp;{BEESCRM:$vo['room_name']}
                        </p>
                            <else/>  <p class="sub">{BEESCRM:$vo['address_detail']}</p>
                        </if>
                    </if>
                </a>
            </volist>
            <else/>
            <div style="width: 40%;margin: 20% auto 0;">
                <img src="/assets/base/repair/images/nonelist.png"/>
            </div>
        </if>
    </div>
    <!-- <a href="#" class="more">加载更多</a> -->
    <div class="marginb-50"></div>
    <include file="nav"/>
</div>

<include file="commonJS"/>
</body>
<script type="text/javascript">
    $(function () {
        var timeOut = "{BEESCRM:$timeOut}";
        if (timeOut == 1) {
            $.confirm('现在非维修工上班时间，订单不能及时处理');
        }
    })
</script>
</html>
